package com.zz.spring6.iocxml.auto.controller;


import com.zz.spring6.iocxml.auto.service.UserService;


public class UserController {

    private UserService userService;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    public void addUser(){
        System.out.println("UserController 中的方法执行了");
//        UserService userService = new UserSerbiceImpl();
//        userService.addUserSerbice();
        userService.addUserSerbice();
    }
}
